<div style="padding: 30px;" class="layui-form layui-form-pane" id="edit_form"> <!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->

    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i> 钩子名称：</label>
        <div class="layui-input-block">
            <input type="text" name="name" required lay-verify="required" placeholder="请输入钩子名称" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-upload">
        <label class="layui-form-label"><i class="required-color">*</i> 描述：</label>
        <div class="layui-input-block">
            <textarea name="description" required lay-verify="required" placeholder="请输入钩子描述" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-upload">
        <label class="layui-form-label"><i class="required-color">*</i> 类型：</label>
        <div class="layui-input-block">
            <input type="radio" name="type" value="1" title="控制器" checked>
            <input type="radio" name="type" value="2" title="视图" >
        </div>
    </div>
    {:zlserverToken()}
    <button id="hook_add_save" class="layui-btn layui-btn-fluid" style="margin-top: 30px;" lay-submit lay-filter="add-hooks-save">保存</button>
</div>
<script>
    layui.use('form', function(){
        layui.form.render();
    });
</script>